﻿using Inovout.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Inovout.Kuajing.Lottery.Models
{
    partial class Click : DataObject
    {
        public virtual string UserCode { get; set; }
        private int? clickCount;
        public virtual int ClickCount
        {
            get
            {
                if (clickCount != null)
                {
                    return this.clickCount.Value;
                }
                else 
                {
                    return 1;
                }
            }
            set
            {
                this.clickCount = value;
            }
        }
        public virtual Active Active { get; set; }
    }
}
